<template>
<div class="wapper">
  <swiper :options="swiperOption" >
    <!-- slides -->
    <swiper-slide v-for="item of swiperList" :key="item.id">
      <img class="swiper-img" :src="item.imgUrl"  alt="">
    </swiper-slide>
    <!-- Optional controls -->
    <div class="swiper-pagination"  slot="pagination"></div>
  </swiper>
</div>
</template>

<script>
export default {
  name:'homeSwiper',
  components:{},
  props:{
    swiperList:Array
  },
  data(){
    return {
        swiperOption:{
          pagination:'.swiper-pagination',
          loop:true
        }
    }
  },
  watch:{},
  computed:{},
  methods:{},
  created(){},
  mounted(){}
}
</script>
<style lang="stylus" scoped>
.wapper >>> .swiper-pagination-bullet-active
  background #fff
.wapper
 width:100%
 height :0
 overflow hidden
 padding-bottom 26.66%
 background #ccc
 .swiper-img
  width :100%
</style>